﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Dev2419a_LunarLander3D
{
    class THE_END // Classe responsável pelo funcionamento do jogo
    {
        Texture2D fundo;
        SoundEffect soundEffect;
        bool play;

        public THE_END(ContentManager Content)
        {
            fundo = Content.Load<Texture2D>("TheEnd");
            soundEffect = Content.Load<SoundEffect>("eagle");
            play = false;
        }

        public void Update(GameTime gameTime, KeyboardState keyboard, KeyboardState oldKeyboard)
        {
            if (!play)
            {
                soundEffect.Play();
                play = true;
            }
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(fundo, Vector2.Zero, Color.White);
        }
    }
}
